From ae76d1966360675940078f9d63730c929f4c63c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?utf8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Sun, 26 Nov 2017 13:15:53 +0000 Subject: [PATCH] GDK W32: Remove an unnecessary type check No idea why it's here, the hash table can store any kind of data, there's no reason why it wouldn't be able to store an old X string type. Might be a holdout from the old days, when strings were handled in a special way (stored directly in the clipboard?). https://bugzilla.gnome.org/show_bug.cgi?id=786509 --- gdk/win32/gdkselection-win32.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gdk/win32/gdkselection-win32.c b/gdk/win32/gdkselection-win32.c index 64f5a53fef..d793f739c7 100644 --- a/gdk/win32/gdkselection-win32.c +++ b/gdk/win32/gdkselection-win32.c @@ -757,8 +757,6 @@ selection_property_store (GdkWindow *owner, GdkSelProp *prop; GdkWin32Selection *win32_sel = _gdk_win32_selection_get (); - g_return_if_fail (type != GDK_TARGET_STRING); - prop = g_hash_table_lookup (win32_sel->sel_prop_table, GDK_WINDOW_HWND (owner)); if (prop != NULL) -- 2.30.2